\documentclass[UTF8, a4paper, 12pt]{ctexart}
\usepackage[svgnames]{xcolor}
\defaultfontfeatures{Mapping=tex-text} % 字体

% \usepackage[utf8]{inputenc}

\usepackage{setspace} % 行间距
\usepackage{booktabs}
\usepackage{amssymb}
\usepackage{listings} % 代码
\usepackage{esvect} % 向量的表示
% \setromanfont{Heiti SC} % 设置中文字体
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt % 文章内中文自动换行，可以自行调节

\usepackage[version=4]{mhchem} % 化学方程式
\usepackage{chemfig} % 有机化学结构式
\usepackage{enumitem} % 列表
\usepackage{etoolbox}
\usepackage{ifxetex, ifluatex}
\usepackage{tikz}
\usepackage{framed}

\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
            \node[shape=circle,draw,inner sep=1pt] (char) {#1};}}

\usepackage{fontspec}
\newfontfamily\monaco{Monaco} % macOS

% \usepackage{color} % 颜色，已经有xcolor了
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{lightgray}{rgb}{0.9,0.9,0.9}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{kwd}{rgb}{0.88,0.13,0.3}

\usepackage{geometry}
\geometry{left=3.0cm, right=3.0cm, top=3.7cm, bottom=3.4cm}

\newcommand*\openquote{\makebox(25,-10){\scalebox{5}{``}}}
\newcommand*\closequote{\makebox(25,-22){\scalebox{5}{''}}}
\colorlet{shadecolor}{lightgray}

\makeatletter
\newif\if@right
\def\shadequote{\@righttrue\shadequote@i}
\def\shadequote@i{\begin{snugshade}\begin{quote}\openquote}
\def\endshadequote{%
  \if@right\hfill\fi\closequote\end{quote}\end{snugshade}}
\@namedef{shadequote*}{\@rightfalse\shadequote@i}
\@namedef{endshadequote*}{\endshadequote}
\makeatother

% \usepackage[fontsize=14]{scrextend}

\usepackage{natbib}
\usepackage{ulem}\usepackage{bm} % 数学符号加粗
\usepackage{caption}
\usepackage{graphicx, float, subfig} % 图片
\usepackage{amsmath}
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=blue,      
    urlcolor=blue,
}

\lstset{ %
  language=MATLAB,                % the language of the code
  basicstyle=\footnotesize,       % the size of the fonts that are used for the code
  numbers=left,                   % where to put the line-numbers
  numberstyle=\tiny\color{gray},  % the style that is used for the line-numbers
  stepnumber=1,                   % the step between two line-numbers. If it's 1, each line 
                                  % will be numbered
  numbersep=5pt,                  % how far the line-numbers are from the code
  backgroundcolor=\color{white},  % choose the background color. You must add \usepackage{color}
  showspaces=false,               % show spaces adding particular underscores
  showstringspaces=false,         % underline spaces within strings
  showtabs=false,                 % show tabs within strings adding particular underscores
  frame=single,                   % adds a frame around the code
  rulecolor=\color{black},        % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
  tabsize=2,                      % sets default tabsize to 2 spaces
  captionpos=b,                   % sets the caption-position to bottom
  breaklines=true,                % sets automatic line breaking
  breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
  title=\lstname,                 % show the filename of files included with \lstinputlisting;
                                  % also try caption instead of title
  keywordstyle=\color{kwd},       % keyword style
  commentstyle=\color{gray},      % comment style
  stringstyle=\color{mauve},      % string literal style
}

\DeclareSymbolFont{extraup}{U}{zavm}{m}{n}
\DeclareMathSymbol{\varheart}{\mathalpha}{extraup}{86}

\CTEXsetup[format={\Large\bfseries}]{section}

\title{New Document}
\author{JieJiSS}
\date{\today}

\begin{document}
  \maketitle
  \newpage
  \tableofcontents
  \newpage

  \setlength{\parskip}{1mm}
  \setlength{\parindent}{2em}
  \begin{spacing}{1.4}
  
  % Your Tex code here!
  
  \end{spacing}
\end{document}

% This tex file is generated automatically by LaTeX_Renderer.
